﻿using System.Threading;
using System.Threading.Tasks;

namespace Xms.Abp.Messaging.Emailing;

public abstract class TemplateEmailSenderProviderBase
{
    protected EmailSettings EmailSettings { get; }

    public TemplateEmailSenderProviderBase(EmailSettings emailSettings)
    {
        EmailSettings = emailSettings;
    }
    public abstract string ProviderName { get; }

    public abstract Task SendEmailAsync(EmailMessage emailMessage, CancellationToken stoppingToken = default);
}
